package com.lm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @version 1.0
 * @dscription:TODO 菜单实体类
 * @author32477
 * @date 2025/9/20 9:27
 */
@Data
@TableName("menu")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Menu {
    //一级节点
    @TableId(value = "Menu_id", type = IdType.AUTO)
    private Integer menuId;
    private String menuName;
    private String parentId;
    private String menuUrl;
    //存储子节点数据
    @TableField(exist = false)
    private List<Menu> children;
}
